package com.hele.sts.dto;

import java.io.Serializable;

public class TreeNode implements Serializable {

	private String id;
	private String pId;
	private String name;
	private String cxqx;
	private boolean open;
	private boolean isParent;
	private boolean canOpen;
	private String iconSkin;
	/**
	 * @return the iconSkin
	 */
	public String getIconSkin() {
		return iconSkin;
	}

	/**
	 * @param iconSkin the iconSkin to set
	 */
	public void setIconSkin(String iconSkin) {
		this.iconSkin = iconSkin;
	}

	public TreeNode(){
		
	}
	
	public TreeNode(String id, String pid, String name, String cxqx,boolean open, boolean isParent) {
		super();
		this.id = id;
		this.pId = pid;
		this.name = name;
		this.cxqx = cxqx;
		this.open = open;
		this.isParent = isParent;
		this.canOpen = true;
	}
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the pid
	 */
	public String getPId() {
		return pId;
	}
	/**
	 * @param pid the pid to set
	 */
	public void setPId(String pid) {
		this.pId = pid;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the open
	 */
	public boolean isOpen() {
		return open;
	}
	/**
	 * @param open the open to set
	 */
	public void setOpen(boolean open) {
		this.open = open;
	}
	/**
	 * @return the isParent
	 */
	public boolean isIsParent() {
		return isParent;
	}
	/**
	 * @param isParent the isParent to set
	 */
	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}

	/**
	 * @return the cxqx
	 */
	public String getCxqx() {
		return cxqx;
	}

	/**
	 * @param cxqx the cxqx to set
	 */
	public void setCxqx(String cxqx) {
		this.cxqx = cxqx;
	}

	/**
	 * @return the canOpen
	 */
	public boolean isCanOpen() {
		return canOpen;
	}

	/**
	 * @param canOpen the canOpen to set
	 */
	public void setCanOpen(boolean canOpen) {
		this.canOpen = canOpen;
	}
	
	
}
